package com.syl.practice.datatype.bigdecimal;

import java.math.BigDecimal;

public class BigDecimalTest {

    public static void main(String[] args) {
        devide01();
    }

    public static void devide01(){
        BigDecimal val01 = new BigDecimal("100.5");
        BigDecimal val02 = val01.setScale(0, BigDecimal.ROUND_HALF_UP);
        System.out.println(val02);
    }

}
